package com.leyou.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
@RequestMapping("/item")
public class GoodsController {

    @GetMapping(path = "/{id}.html")
    public String toItemPage(Model model, @RequestParam(name = "id") Long id) {

        return "item";
    }


}
